import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store'

//引入mockServer
import '@/mock/mockServer.js'

//引入全局组件
import '@/main/components'

//引入事件总线
import '@/main/eventBus'

//引入element-UI
import '@/main/element'

//引入lazyLoad懒加载的配置
import "@/main/lazyLoad";

//引入表单验证插件的配置
import "@/main/validate";

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  //路由，给所有子组件注册$router
  router,
  //vuex，给所有子组件注册$store
  store
}).$mount('#app')
